import mySql from "../../sql/index"
export default {
	route: '/web/recentWorkList',
	async handle(params){
		let res:any =  await mySql.query({
			tableName: 'recentWork',
			condition(item){
				return true;
			}
		});
		return new Promise((resolve,reject)=>{
			if(res.code === 200 && res.result.length > 0){
				resolve(res);
			}else{
				resolve({...res,result:[]});
			}
		})
	}
}